package cn.com.blackboard.DataModule4B2.util;

public class DataSourceModel {
	private SourceType sourceType;
	private String bbClsName;
	private String modelClsName;
	private String rawSourceId;
	private String rawDescription;
	private String mapperAttribute;
	private String renderAttribute;
	private String renderRules;
	
	public SourceType getSourceType() {
		return sourceType;
	}

	public void setSourceType(SourceType sourceType) {
		this.sourceType = sourceType;
	}

	public String getBbClsName() {
		return bbClsName;
	}

	public void setBbClsName(String bbClsName) {
		this.bbClsName = bbClsName;
	}

	public String getModelClsName() {
		return modelClsName;
	}

	public void setModelClsName(String modelClsName) {
		this.modelClsName = modelClsName;
	}

	public String getRawSourceId() {
		return rawSourceId;
	}

	public void setRawSourceId(String rawSourceId) {
		this.rawSourceId = rawSourceId;
	}

	public String getRawDescription() {
		return rawDescription;
	}

	public void setRawDescription(String rawDescription) {
		this.rawDescription = rawDescription;
	}

	public String getMapperAttribute() {
		return mapperAttribute;
	}

	public void setMapperAttribute(String mapperAttribute) {
		this.mapperAttribute = mapperAttribute;
	}

	public String getRenderAttribute() {
		return renderAttribute;
	}

	public void setRenderAttribute(String renderAttribute) {
		this.renderAttribute = renderAttribute;
	}

	public String getRenderRules() {
		return renderRules;
	}

	public void setRenderRules(String renderRules) {
		this.renderRules = renderRules;
	}

	public static enum SourceType {		
		RAWTYPE("RAWTYPE"),
		MAPTYPE("MAPTYPE"),
		RENDERTYPE("RENDERTYPE");
		private String value;
		private SourceType(String value){
			this.value = value;
		}
		public String getValue(){
			return this.value;
		}
	}
}
